/**
 * related to add_picture_temp2.ui
 * 
 * @Author : mafeng
 * @Timestamp : 2016-12-03
 */
var do_Notification = sm("do_Notification");
var do_Page = sm("do_Page");
var do_App = sm("do_App");
var do_Global = sm("do_Global");
//创建一个album实例
var album = sm("do_Album");

var layout = ui("do_ALayout_1");

layout.on("touch", function(){
	
	// 选择图片
	var pic_num = do_Global.getMemory("pic_num") - 1;
	deviceone.print(pic_num);
	album.select(3 - pic_num, 400, -1, 100, false, function(data, e) {
	deviceone.print(data.length);  
	do_Page.fire("selectPicture", data);
	
	});
	
});


